package com.zuqiuzhandui.liveing.net;

import com.code19.library.GsonUtil;
import com.code19.library.L;
import com.zuqiuzhandui.liveing.model.resultModel.CheckVerionRs;


import org.lzh.framework.updatepluginlib.business.UpdateWorker;
import org.lzh.framework.updatepluginlib.model.CheckEntity;

import rx.functions.Action1;

/**
 * Created by yq on 2016-08-09.
 */
public class MyUpdateWorker extends UpdateWorker {
    public final String tag="update";
    @Override
    protected String check(CheckEntity entrty) throws Exception {
        CheckVerionRs body = HttpMethods.getInstance().getHttpService().requestUpdata(entrty.getUrl(), entrty.getParams()).execute().body();
        String str= GsonUtil.objectToJson(body);
        L.d(tag+str);
         return str;
    }
}
